﻿using System.Drawing;

namespace game.mantianxing
{
    internal class sp_mantianxing
    {
        public int size;
        public Point point;
        public int width;
        public int height;

        //public Rectangle rectangle;
        public Graphics graghics;

        public void paint()
        {
            lock (this.graghics)
            {
                Image beauty = new Bitmap("pic/mantianxing.png");

                Rectangle rect = new Rectangle(this.point, new Size(width, height));

                this.graghics.DrawImage(beauty, rect);
            }

            //var g = this.graghics;

            //g.Clear(this.bgcolor);

            //SolidBrush sb = new SolidBrush(color);
            //lock (g)
            //{
            //    try
            //    {
            //        g.FillRectangle(
            //            sb,

            //            point.X * this.size,
            //            point.Y * this.size,
            //            this.size - 1,
            //            this.size - 1);
            //    }
            //    catch { }
            //}
        }
    }
}